package com.suse.lhw.hms.foodserver.service.Impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.suse.lhw.hms.foodserver.domin.FUnit;
import com.suse.lhw.hms.foodserver.dao.FUnitMapper;
import com.suse.lhw.hms.foodserver.service.FUnitService;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.service.Impl
 * @ClassName: FUnitServiceImpl
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/18 19:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/18 19:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Service
public class FUnitServiceImpl implements FUnitService {

    @Resource
    private FUnitMapper fUnitMapper;

    @Override
    public int deleteByPrimaryKey(Integer fUnitId) {
        return fUnitMapper.deleteByPrimaryKey(fUnitId);
    }

    @Override
    public int insert(FUnit record) {
        return fUnitMapper.insert(record);
    }

    @Override
    public int insertSelective(FUnit record) {
        return fUnitMapper.insertSelective(record);
    }

    @Override
    public FUnit selectByPrimaryKey(Integer fUnitId) {
        return fUnitMapper.selectByPrimaryKey(fUnitId);
    }

    @Override
    public int updateByPrimaryKeySelective(FUnit record) {
        return fUnitMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FUnit record) {
        return fUnitMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<FUnit> selectAllUnitByModelId(int modelId) {
        return fUnitMapper.selectAllUnitByModelId(modelId);
    }

}
